document.write("Hello World !! <br/>");


function add(x , y){
	
	return x+y;
}

/*
var date = new Date();
document.write(date.getDate());
*/
moveTo(300,500);
document.write(navigator.appName);
document.write(navigator.platform);

var myArray = new Array(2);

document.images[0].src = "firstBG.jpg";
myArray[0] = [1,2,3,4];
myArray[1] = [9,7];

// alert(myArray[0][3]);


/*
try{
	var x = 100;
	
	if(x < 100)
		throw "less";
	else
		throw "larg";	
}catch(Er){
	
	if(Er == "less")
		alert("LESSSS");
	else if(Er == "larg")
		alert("LARGGGG");
}
*/
//document.write(add(3,12));

//alert("Welcome to Java Script" +"\n"+"Thanks");
//confirm("Do you want to Exit");
//prompt("Enter your Name","M.S");

// Assignment 1
/*for(var i=0 ; i < 10 ; i++){
	document.write("<p style = font-size:"+i+5+"px > Hello World</p>");
}*/

//Assignment 2
/*
var res = prompt("What's your fav color ?"+"\n"+"1)Red  2)Blue 3)Green");

if(res == 1)
	document.write("Red was choosen");
else if(res == 2)
	alert("Blue was choosen");
else
	alert("Green was choosen");
*/